package iot.wlink.network.devices.manager;

import iot.wlink.network.devices.session.DeviceSession;

/**
 * @author : willian fu
 * @date : 2021/8/22
 */
public interface SessionManager {

    /**
     * 获取session
     * @param uid 先旧的
     * @param isNew 是否直接取新的
     * @return session
     */
    DeviceSession getSession(String uid, boolean isNew);

    /**
     * 重载session
     * @param uid uid
     */
    void reloadSession(String uid);

}
